#!/usr/bin/python
# GM_nonlinear.py
'''And unfinished module.

The idea was to make it possible to sample the sphere in some more sensible fashion (rather than crowding many points near galactic zenith).  I'm still not sure if there IS a better way that maintains simplicity, and I certainly haven't implemented one.'''


import math
import numpy

VariableNames = ['bres']

def nonlinear(simpars):
    for i in simpars:
        cmd = "%s = simpars['%s']" % (i,i)
        exec cmd
    # Fill in some things that depend on the inputs
    blocs = numpy.ones(bres, dtype=float)
    for i in range(0, bres):
        blocs[i] = i + 0.5

#     = numpy.array()
    for i in simpars:
        cmd = "simpars['%s'] = %s" % (i,i)
        exec cmd
    return simpars
